/*
 * OpenFile.cpp
 *
 *  Created on: Apr 16, 2012
 *      Author: jaap
 */

#include "OpenFile.h"

OpenFile::OpenFile(Inode* inode, string name) {
	this->inode = inode;
	this->name = name;
}

int OpenFile::read(char buffer[], int count) {

}

Inode * OpenFile::getInode() {
	return inode;
}

int OpenFile::getUsecount() {
	return usecount;
}

long OpenFile::getIoPosition() {
	return ioposition;
}

string OpenFile::getName() {
	return name;
}

void OpenFile::increaseUsecount() {
	usecount++;
}

void OpenFile::decreaseUsecount() {
	assert(usecount > 0);
	usecount--;
}
